package com.onLineCar.openFeign;

import com.onLineCar.common.core.domain.Result;
import com.onLineCar.driver.domain.entity.TDriver;
import com.onLineCar.openFeign.impl.DriverFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * @version 1.0
 * @description
 */
@FeignClient(name = "onLineCar-driver" , fallback = DriverFeignImpl.class)
public interface DriverFeign {
    /**
     * 根据Id查看司机详情 查询
     * @param driverId
     * @return
     */
    @PostMapping("/driver/queryDriverListByDriverId/{driverId}")
    public Result<TDriver> queryDriverListByDriverId(@PathVariable(value = "driverId") Integer driverId);
}
